<?php
/**
 * Created by PhpStorm.
 * User: zhan
 * Date: 2019/1/12  15:28
 */
namespace app\api\controller;
class Line extends Base
{
    //检查权限作用域
    protected $beforeActionList = [
        'checkPrimaryScope' => [
            'except' => 'except'
        ]
    ];

    /*
   * 线路 列表
   */
    public function lists()
    {
        $result =  (new \app\api\logic\Line())->lists();
        return $this->ajaxReturn($result);
    }

    /*
     * 线路编辑
     */
    public function edit()
    {
        $result =  (new \app\api\logic\Line())->edit();
        return $this->ajaxReturn($result);
    }

    /*
    * 线路编辑
    */
    public function editname()
    {
        $result =  (new \app\api\logic\Line())->editname();
        return $this->ajaxReturn($result);
    }

    /*
     * 线路详情
     */
    public function info()
    {
        $result =  (new \app\api\logic\Line())->info();
        return $this->ajaxReturn($result);
    }

    /*
     * 设置线路时间
     */
    public function settime()
    {
        $result =  (new \app\api\logic\Line())->settime();
        return $this->ajaxReturn($result);
    }

    public function settimeInfo()
    {
        $result =  (new \app\api\logic\Line())->settimeInfo();
        return $this->ajaxReturn($result);
    }

    /*
     * 线路删除
     */
    public function routedel()
    {
        $result =  (new \app\api\logic\Line())->routedel();
        return $this->ajaxReturn($result);
    }

    /*
     * 设置司机
     */
    public function setRoutedriver()
    {
        $result =  (new \app\api\logic\Line())->setRoutedriver();
        return $this->ajaxReturn($result);
    }

    //设置司机时的可选司机列表
    public function Routedriver()
    {
        $result =  (new \app\api\logic\Line())->Routedriver();
        return $this->ajaxReturn($result);
    }
}